#!/usr/bin/env python
# -*- coding:utf-8 -*-

# file:do_exam1.py
# author:王雯雯
# datetime:2024-11-12 
# software: PyCharm

class DictClass:
    def __init__(self, dictionary):
        self.dictionary = dictionary

    def del_dict(self, key):
        if key in self.dictionary:
            del self.dictionary[key]

    def get_dict(self, key):

        return self.dictionary.get(key, "not found")

    def get_key(self):

        return list(self.dictionary.keys())

    def update_dict(self, other_dict):

        self.dictionary.update(other_dict)
        return list(self.dictionary.values())